package hairdressing;

import java.util.logging.Level;
import java.util.logging.Logger;

public class Cashier extends Thread
{   
    @Override
    public void run()
    {
        while (true)
        {
            try
            {
                Hairdressers.payment.acquire();
                Hairdressers.coord.acquire();
                Hairdressers.coord.release();
                Hairdressers.receipt.release();
            } catch (InterruptedException ex)
            {
                Logger.getLogger(Cashier.class.getName()).log(Level.SEVERE, null, ex);
            }
        }     
    }    
}
